package com.example.rpdomain.gateway;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.rpclient.dto.query.AwardListByParamQuery;
import com.example.rpdomain.award.AwardEntity;

public interface AwardGateway {

    AwardEntity save(AwardEntity entity);

    IPage<AwardEntity> page(AwardListByParamQuery query);

    int deductionAwardNumber(Long awardId, Integer number);
//
//    int deductingAwardNumber(Long awardId, Integer number);
}
